/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entityBeans;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author allankv
 */
@Entity
@Table(name = "technicalcollection")
@NamedQueries({
    @NamedQuery(name = "Technicalcollection.findAll", query = "SELECT t FROM Technicalcollection t"),
    @NamedQuery(name = "Technicalcollection.findByIdtechnicalcollection", query = "SELECT t FROM Technicalcollection t WHERE t.idtechnicalcollection = :idtechnicalcollection"),
    @NamedQuery(name = "Technicalcollection.findByTechnicalcollection", query = "SELECT t FROM Technicalcollection t WHERE t.technicalcollection = :technicalcollection")})
public class Technicalcollection implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idtechnicalcollection")
    private Integer idtechnicalcollection;
    @Column(name = "technicalcollection")
    private String technicalcollection;
    @OneToMany(mappedBy = "technicalcollection", fetch = FetchType.LAZY)
    private List<Monitoring> monitoringList;

    public Technicalcollection() {
    }

    public Technicalcollection(Integer idtechnicalcollection) {
        this.idtechnicalcollection = idtechnicalcollection;
    }

    public Integer getIdtechnicalcollection() {
        return idtechnicalcollection;
    }

    public void setIdtechnicalcollection(Integer idtechnicalcollection) {
        this.idtechnicalcollection = idtechnicalcollection;
    }

    public String getTechnicalcollection() {
        return technicalcollection;
    }

    public void setTechnicalcollection(String technicalcollection) {
        this.technicalcollection = technicalcollection;
    }

    public List<Monitoring> getMonitoringList() {
        return monitoringList;
    }

    public void setMonitoringList(List<Monitoring> monitoringList) {
        this.monitoringList = monitoringList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idtechnicalcollection != null ? idtechnicalcollection.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Technicalcollection)) {
            return false;
        }
        Technicalcollection other = (Technicalcollection) object;
        if ((this.idtechnicalcollection == null && other.idtechnicalcollection != null) || (this.idtechnicalcollection != null && !this.idtechnicalcollection.equals(other.idtechnicalcollection))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entityBeans.Technicalcollection[idtechnicalcollection=" + idtechnicalcollection + "]";
    }

}
